package com.woniu.sharepark.leasesystem.common.dao;

import com.woniu.sharepark.leasesystem.common.pojo.DrivingPermit;

/**
* 行驶证接口
* @title DrivingPermitDAO
* @param * @param null
* @return * @return: null
* @author DELL
* @date 2019/6/10 0:07
**/

public interface DrivingPermitDAO {
    /**
    * deleteByPrimaryKey
    * @title deleteByPrimaryKey
    * @param driveId
    * @return int
    * @author DELL
    * @date 2019/6/10 0:08
    **/

    int deleteByPrimaryKey(Integer driveId);

    /**
    * insert
    * @title insert
    * @param record
    * @return int
    * @author DELL
    * @date 2019/6/10 0:08
    **/

    int insert(DrivingPermit record);

    /**
    * insertSelective
    * @title insertSelective
    * @param record
    * @return int
    * @author DELL
    * @date 2019/6/10 0:08
    **/

    int insertSelective(DrivingPermit record);

    /**
    * selectByPrimaryKey
    * @title selectByPrimaryKey
    * @param driveId
    * @return com.woniu.sharepark.leasesystem.common.pojo.DrivingPermit
    * @author DELL
    * @date 2019/6/10 0:08
    **/

    DrivingPermit selectByPrimaryKey(Integer driveId);

    /**
    * updateByPrimaryKeySelective
    * @title updateByPrimaryKeySelective
    * @param record
    * @return int
    * @author DELL
    * @date 2019/6/10 0:08
    **/

    int updateByPrimaryKeySelective(DrivingPermit record);

    /**
    * updateByPrimaryKey
    * @title updateByPrimaryKey
    * @param record
    * @return int
    * @author DELL
    * @date 2019/6/10 0:08
    **/

    int updateByPrimaryKey(DrivingPermit record);

    /**
    *
    * @title findPermitByUid
    * @param uid
    * @return com.woniu.sharepark.leasesystem.common.pojo.DrivingPermit
    * @author DELL
    * @date 2019/6/20 18:08
    **/

    DrivingPermit findPermitByUid(Integer uid);
}